import request from "../utils/request.js"


//首页场地列表
export function lst(data) {
	return request({
		url: '/activity/lst',
		data
	})
}


//场地详情
export function activityDetail(data) {
	return request({
		url: '/activity/detail',
		data
	})
}

//首页
export function index() {
	return request({
		url: '/index/index'
	})
}

//导航栏详情
export function navDetail(data) {
	return request({
		url: '/index/navDetail',
		data
	})
}

//个人中心
export function userIndex(data) {
	return request({
		url: '/user/index',
		data
	})
}


//登录
export function mpLogin(data) {
	return request({
		url: '/login/mpLogin',
		data,
		method: 'post'
	})
}

//小程序获取openid
export function getMpOpenid(data) {
	return request({
		url: '/login/getMpOpenid',
		data
	})
}

//预约活动
export function appointActivity(data) {
	return request({
		url: '/user/appointActivity',
		data,
		method: 'post'
	})
}

//预约记录
export function appointLst(data) {
	return request({
		url: '/user/appointLst',
		data
	})
}


//预约详情
export function appointDetail(data) {
	return request({
		url: '/user/appointDetail',
		data
	})
}

//预约日期列表
export function activityDateTime(data) {
	return request({
		url: '/activity/activityDateTime',
		data
	})
}

//修改昵称
export function changeNickName(data) {
	return request({
		url: '/user/changeNickName',
		data,
		method: 'post'
	})
}

//核销
export function writeOffAppoint(data) {
	return request({
		url: '/user/writeOffAppoint',
		data,
		method: 'post'
	})
}